package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.arpa.wms.domain.entity.Putaway;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 上架确认DTO
 * </p>
 *
 * @author xuyang
 * @since 2020-09-11
 */
@Data
@ApiModel(value="PutawayItemWithRegisterVO对象", description="上架确认及明细")
public class PutawayItemWithRegisterVO implements Serializable {


    @ApiModelProperty(value = "确认单数据标识")
    private String code;

    @ApiModelProperty(value = "上架单号")
    private String putawayCode;

    @ApiModelProperty(value = "上架明细标识")
    private String putawayItemCode;

    @ApiModelProperty(value = "收货明细编码")
    private String receiveItemCode;

    @ApiModelProperty(value = "收货登记编码")
    private String receiveRegisterCode;

    @ApiModelProperty(value = "商品编码code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "商品保质期（天）")
    private String expirationQuantity;

    @ApiModelProperty(value = "单位")
    private String goodsUnit;

    @ApiModelProperty(value = "单位名称")
    private String goodsUnitName;

    @ApiModelProperty(value = "基本单位")
    private String basicUnit;

    @ApiModelProperty(value = "基本单位名称")
    private String basicUnitName;

    @ApiModelProperty(value = "当前商品单位转基本单位件装量")
    private BigDecimal unitConvertQuantity;

    @ApiModelProperty(value = "收货数量")
    private BigDecimal receivedQuantity;

    @ApiModelProperty(value = "推荐库位")
    private String recommendLocation;

    @ApiModelProperty(value = "推荐库位")
    private String recommendLocationName;

    @ApiModelProperty(value = "推荐库区")
    private String recommendSpaceCode;

    @ApiModelProperty(value = "货品状态")
    private String goodsStatus;

    @ApiModelProperty(value = "货品状态")
    private String goodsStatusName;

    @ApiModelProperty(value = "库存批次号")
    private String lot;

    @ApiModelProperty(value = "收货批次")
    private String receiveLot;

    @ApiModelProperty(value = "生产日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "序列号")
    private String serialNumber;

    @ApiModelProperty(value = "扩展1")
    private String extendOne;

    @ApiModelProperty(value = "扩展2")
    private String extendTwo;

    @ApiModelProperty(value = "扩展3")
    private BigDecimal extendThree;

    @ApiModelProperty(value = "扩展4")
    private BigDecimal extendFour;

    @ApiModelProperty(value = "扩展5")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDateTime extendFive;

    @ApiModelProperty(value = "扩展6")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDateTime extendSix;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "上架数量")
    @Digits(integer = 14,fraction = 6, message = "上架数量超过了允许范围（只允许14位整数和6位小数范围内）", groups = {Putaway.Save.class})
    private BigDecimal putawayQuantity;

    @ApiModelProperty(value = "库区编码")
    private String spaceCode;

    @ApiModelProperty(value = "库位")
    private String location;

    @ApiModelProperty(value = "库位名")
    private String locationName;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "容器编码")
    private String containerBarCode;

    @ApiModelProperty(value = "容器类型;0:托盘；1：周转箱；")
    private String containerType;

    @ApiModelProperty(value = "任务号")
    private String taskCode;

    @ApiModelProperty(value = "作业人编码")
    private String operatorBy;

    @ApiModelProperty(value = "作业人名称")
    private String operatorName;

    @ApiModelProperty(value = "确认单状态；0：未上架；2：已上架")
    private String status;

    @ApiModelProperty(value = "确认单状态；0：未上架；2：已上架")
    private String statusName;

    @ApiModelProperty(value = "实际上架数量")
    private BigDecimal planPutawayQuantity;


}
